const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  configureWebpack: {
    resolve: {
      fallback: {
        "net": false,
        "tls": false,
        "fs": false,
        "path": false
      }
    }
  },
  transpileDependencies: true,
  devServer: {
    port: 80,
    // 接口代理
    proxy: {
      "/api":{
        target: "http://localhost:8080",
        changeOrigin: true,
        pathRewrite: {"^/api" : ""}
      }
    }
  }
})
